package com.my.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my.entity.GradeClass;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GradeClassMapper extends BaseMapper<GradeClass> {

    @Select("select c.id, c.name, c.deep, c.sort, c.parent_id, c.create_time, g.name as grade_name from grade_class c left outer join grade_class g on c.parent_id = g.id")
    List<GradeClass> getList();

}
